<?php
return [
    'id' => 'settlement-form',
    'template' => 'form_default',
    'enableClientValidation' => true,
    'enableAjaxValidation' => false,
    'options' => [],
    'models' => [
        'balance' => [
            'title' => '结算信息',
            'th_with' => 120,
            'elements' => [
                'status' => [
                    'type'=>'radiolist',
                    'items'=>[
                        '1'=>'已结算',
                        '0'=>'未结算',
                    ],
                    'options' => ['class' => 'input-radiolist','align'=>'left'],
                ],
                'voucher_url'=>[
                    'type'=>'widget',
                    'class'=>\doumiaoduo\ueditor\ImageUploadSingle::className(),
                    'options'=>[
                        'class'=>'input-text',
                    ],
                    'clientOptions'=>[
                        'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action'])
                    ],
                    'buttonOptions'=>[
                        'class'=>'button'
                    ]
                ],

            ],
        ]
    ]
];